<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BoxCollocation extends Model
{
    public $table = 'box_collocation';

    protected $fillable = [
    	'id',
        'box_id',
        'colour_id',
        'size',
        'style_number',
        'pic',
    ];

    public function colour()
    {
        return $this->hasOne(Colour::class,'id','colour_id');
    }

    // public function getPicAttribute()
    // {
    //     return url($this->attributes['pic']);
    // }

}
